import { User } from '@app/database/schemas/user.schema';
import { ApiProperty } from '@nestjs/swagger';

export class Captcha {
  @ApiProperty({ description: '验证码id' })
  id: string;
  @ApiProperty({ description: '验证码文本' })
  text: string;
  @ApiProperty({ description: '验证码数据' })
  data: string;
}

export class RegistUserDto extends User {
  @ApiProperty()
  captch: Captcha;
}
